"""
抽象类（接口）
"""


class AC:
    def cool_wind(self):
        """制冷"""
        pass

    def hot_wind(self):
        """制热"""
        pass

    def swing_l_r(self):
        """左右摆风"""
        pass


class Midea_AC(AC):
    def cool_wind(self):
        print('美的空调_cool_wind')

    def hot_wind(self):
        print('美的空调_hot_wind')

    def swing_l_r(self):
        print('美的空调_左右摆风')


class Gree_AC(AC):
    def cool_wind(self):
        print('格力空调_cool_wind')

    def hot_wind(self):
        print('格力空调_hot_wind')

    def swing_l_r(self):
        print('格力空调_左右摆风')


def make_cool(ac: AC) -> None:
    """制冷"""
    ac.cool_wind()


make_cool(Midea_AC())
make_cool(Gree_AC())
